//定义路由
const routes = [
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/home',
    meta: {
      title: '首页'
    },
    component: ()=>import("views/home/Home")
  },
  {
    path: '/category',
    meta: {
      title: '分类'
    },
    component: ()=>import("views/category/Category")
  },
  {
    path: '/cart',
    meta: {
      title: '购物车',
    },
    component: ()=>import("views/cart/Cart")
  },
  {
    path: '/profile',
    meta: {
      title: '我的'
    },
    component: ()=>import("views/profile/Profile")
  }
]

export default routes;
